<?php echo $html->script('facturas/set_valesalida_almacenes.js'); ?>
<div id="facturaDialog" class="hide">
	<h2 id="summary"></h2>
	<?php echo $form->create('Valesalida',array()); ?>
	<?php echo $form->hidden('Valesalida.id'); ?>
	<?php echo $form->hidden('Valesalida.factura_id',array('value'=>$factura_id)); ?>
	<table class="tablaFormHeader"><?php echo
		'<tr>'
			.'<td>'.$form->label('Documento.numero_serie', __('Numero', true)).' </td>'
			.'<td style="width:300px">&nbsp;&nbsp;'.$form->input('Documento.numero_serie', array('label'=>false,'div'=>false, 'size'=>'20','class'=>'text ui-widget-content ui-corner-all', 'readonly'=>true)).'</td>'
				
			.'<td>'.__('Numero Factura', true).'</td>'
			.'<td>:&nbsp;'.$valesalida['Factura']['numero'].'</td>'
		.'</tr>'
		
		.'<tr>'
			.'<td>'.__('Entregado por', true).'</td>'
			.'<td>:&nbsp;'.$valesalida['Usuario']['appaterno'].' '.$valesalida['Usuario']['nombres'].'</td>'
			
			.'<td>'.__('Fecha', true).'</td>'
			.'<td>:&nbsp;'.substr($valesalida['Factura']['created'],0,10).'</td>'
		.'</tr>'
		.'<tr>'
			.'<td>'.''.'</td>'
			.'<td>'.''.'</td>'
			
			.'<td>'.__('Almacen', true).'&nbsp;&nbsp;&nbsp;</td>'
			.'<td>'.$form->select('almacen_id',$almacenes,null,array('label'=>false,'class'=>'span-4 required','div'=>false,'error'=>false,'empty'=>__('Seleccionar',true))).'</td>'	
		.'</tr>'; ?>
	</table>
	<br/>
	<div id="detallevale" class="span-15">
		
	</div>	
	<?php echo $form->end(); ?>
</div>